package com.example.duanlei417.mypro2.login;

import android.annotation.SuppressLint;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.widget.Toast;

import com.example.duanlei417.mypro2.login.lib_login.annotation.LoginFilter;

public class LoginFilterActivity extends AppCompatActivity {

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        if (lib_login_filter_onCreate(false)) {
            Toast.makeText(this, "没有登录！", Toast.LENGTH_SHORT).show();
            finish();
        }
    }

    @LoginFilter
    public Boolean lib_login_filter_onCreate(Boolean aspectParam) {
        return aspectParam;
    }

}
